use ggez::{Context, GameResult};
use glam::*;

use crate::view;

#[derive(Clone)]
pub struct DrawContext<'a> {
    pub frame_number: view::FrameNumber,
    pub dim: Vec2,
    pub transform: Mat4,
    pub ggez_ctx: std::rc::Rc<std::cell::RefCell<&'a mut Context>>,
}

impl view::GameView {
    pub fn draw(&self, ctx: &DrawContext) -> GameResult {
        self.floor_explorer.draw(ctx)?;

        Ok(())
    }
}
